package com.sfh.gd.converter;

import com.sfh.gd.domain.entity.GamePKDO;
import com.sfh.gd.domain.entity.MemberDO;
import com.sfh.gd.domain.vo.GamePKVO;
import com.sfh.gd.domain.vo.MemberVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * PK转换器
 */
@Mapper(componentModel = "spring")
public interface GamePKConverter {


    GamePKConverter INSTANCE = Mappers.getMapper(GamePKConverter.class);


    @Mapping(target = "id", source = "pkId")
    GamePKVO doToPKVO(GamePKDO data);

    List<GamePKVO> doToPKVO(List<GamePKDO> data);



}
